<?php
include("config.php");
$result = MySQL_Query("SELECT * FROM log WHERE typ='3' ORDER BY kolik_stihy");
while ($zaznam = MySQL_Fetch_Array($result)) {
$kolik_stihy=$zaznam['kolik_stihy'];
$kolik_stihy=str_replace(" ", "", $kolik_stihy);
echo $zaznam['kolik_stihy'];
echo "<br>";

$kolik = $kolik + $kolik_stihy;
}
echo $kolik;




$result = MySQL_Query("SELECT * FROM log WHERE typ='3' ORDER BY kolik_vrtule");
while ($zaznam = MySQL_Fetch_Array($result)) {
$kolik_vrtule=$zaznam['kolik_vrtule'];
$kolik_vrtule=str_replace(" ", "", $kolik_vrtule);
echo $zaznam['kolik_vrtule'];
echo "<br>";

$kolik = $kolik + $kolik_vrtule;
}
echo $kolik;
?>
